From d38caf05b29aec15b944d5f5e4ec70a12d9f374b Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Wed, 7 Dec 2005 10:53:47 +0000 Subject: [PATCH] Squelch error messages from calls when failure is handled gracefully. Signed-off-by: Ewan Mellor --- tools/examples/xen-hotplug-common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/examples/xen-hotplug-common.sh b/tools/examples/xen-hotplug-common.sh index d4ebedf9e7..4c2c836953 100644 --- a/tools/examples/xen-hotplug-common.sh +++ b/tools/examples/xen-hotplug-common.sh @@ -73,7 +73,7 @@ xenstore_read() { # path is not present. # xenstore_read_default() { - xenstore-read "$1" || echo "$2" + xenstore-read "$1" 2>/dev/null || echo "$2" } @@ -146,7 +146,7 @@ _claim_lock() _release_lock() { trap sigerr ERR - rm -rf "$1" || true + rm -rf "$1" 2>/dev/null || true } -- 2.30.2